﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administration/Admin.Master" AutoEventWireup="true" CodeBehind="ReturnOrderList.aspx.cs" Inherits="QuickDev.Web.App.Administration.ReturnOrderList" %>
<%@ MasterType VirtualPath="~/Administration/Admin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="mainContentRegion">
        <div id="admin_centercontent">
            <div class="sectionHeader">
                <QuickDev:Label ID="lblReturnOrderList" runat="server" Text="退换单列表" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <QuickDev:HyperLink ID="hlShowAll" runat="server" NavigateUrl="~/Administration/ReturnOrderList.aspx" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Repeater ID="rptReturnOrderStatus" runat="server">
                    <ItemTemplate>
                        <QuickDev:HyperLink ID="hlReturnOrderStatus" runat="server" Text='<%# GetFormattedReturnOrderStatusName(Eval("Id").ToString()) %>'
                            NavigateUrl='<%# FormatReturnOrderListUrl(Eval("Id").ToString()) %>' />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </ItemTemplate>
                </asp:Repeater>
            </div>          
            <br />
            <QuickDev:Panel ID="pnlReturnOrderList" runat="server">
                <QuickDev:Label ID="lblTotalOrders" runat="server" CssClass="label" />&nbsp;
                <QuickDev:Label ID="lblNumberOfTotalReturnOrders" runat="server" CssClass="label" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <QuickDev:HelpLink ID="helpAddReturnOrder" runat="server" NavigateUrl="~/Administration/ReturnOrderAdd.aspx"
                    SkinID="addnew"/>
                <br />
                <br />
                <QuickDev:DataGrid ID="dgReturnOrders" runat="server" AutoGenerateColumns="false" DataKeyField="Id" OnPageIndexChanged="dgReturnOrders_PageIndexChanging" SkinID="adminDataGrid">
                    <Columns>
                        <asp:TemplateColumn ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#Eval("CreatedOn", "{0:ddd , MMMM  d , yyyy}")%><br />
                                <%#Eval( "CreatedOn" , "{0:hh:MM:ss  tt}" )%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                     <asp:TemplateColumn ItemStyle-Width="18%" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblReturnOrderId" runat="server" Text='<%#Eval("Id") %>'
                                    Visible="false" />
                                <asp:HyperLink ID="hlReturnOrder" NavigateUrl='<%# FormatEditUrl(Eval("Id").ToString()) %>'
                                    runat="server" Text='<%# SetMember( Eval( "ReturnOrderNumber" ).ToString() )%>' />
                                
                                <br />

                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                <%# GetFormattedReturnOrderStatusName( Eval( "ReturnOrderStatusId" ).ToString() )%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                <%# Eval( "WangWangId" )%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                <%# Eval( "CustomerName" )%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                <%# Eval( "CustomerCellPhone" )%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                <%# Eval( "CustomerAddress" )%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                <%# FormatGetEmployeeName(Eval( "UpdatedBy" ).ToString())%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                </QuickDev:DataGrid>
            </QuickDev:Panel>
        </div>
    </div>
</asp:Content>
